import CustomForm from './CustomForm/index.vue'
import CustomDialog from './CustomDialog/index.vue'
import CustomElTable from './CustomElTable/index.vue'
import CustomVxeTable from './CustomVxeTable/index.vue'
import CustomVxeItemsTable from './CustomVxeItemsTable/index.vue'
import InputsSelectDialog from './InputsSelectDialog/index.vue'

const components = {
  CustomForm,
  CustomDialog,
  CustomElTable,
  CustomVxeTable,
  CustomVxeItemsTable,
  InputsSelectDialog
}

/** 挂载全局组件 */
export function loadComponents(app) {
  Object.entries(components).forEach(([name, component]) => {
    app.component(name, component)
  })
}
